Skip to content

Conversation

@wangchdo
Copy link
Contributor

@wangchdo wangchdo commented Jan 20, 2026

Summary

  1. align hrtimer callback declaration with latest update of hrtimer
  2. Add threaded hrtimer tests

Impact

Hritmer ostest improvements, no impact to any other functions

apache/nuttx#18025 rely on this PR to fix the CI build issue

Testing

ostest passed with hrtimer enabled:

rv-virt:smp64

NuttShell (NSH)
nsh> 
nsh> uname -a
NuttX 0.0.0 3485d61db2-dirty Jan 20 2026 11:42:50 risc-v rv-virt
nsh> 
nsh> ostest

(...)

user_main: hrtimer test

End of test memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     1fc0a00  1fc0a00
ordblks         9       11
mxordblk  1f71c68  1f50cd0
uordblks    15c90    27320
fordblks  1faad70  1f996e0

Final memory usage:
VARIABLE  BEFORE   AFTER
======== ======== ========
arena     1fc0a00  1fc0a00
ordblks         1       11
mxordblk  1fb5908  1f50cd0
uordblks     b0f8    27320
fordblks  1fb5908  1f996e0
user_main: Exiting
ostest_main: Exiting with status 0
nsh>

@xiaoxiang781216
Copy link
Contributor

@wangchdo please fix:

/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule

  align hrtimer callback declaration with latest update of hrtimer

Signed-off-by: Chengdong Wang <[email protected]>
  Add threaded hrtimer tests

Signed-off-by: Chengdong Wang <[email protected]>
@wangchdo wangchdo force-pushed the hrtimer_test_alignment branch from 2bd1730 to 6749f3c Compare January 20, 2026 09:25
@wangchdo
Copy link
Contributor Author

@wangchdo please fix:

/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule
/github/workspace/sources/apps/Application.mk:238: target 'signest.c.github.workspace.sources.apps.testing.ostest.o' given more than once in the same rule

I rebased this PR, I think this problem should be fixed

@simbit18
Copy link
Contributor

Hi @wangchdo, still not resolved.

====================================================================================
Configuration/Tool: qemu-armv8a/nsh_smp
2026-01-20 09:41:58
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
/d/a/nuttx-apps/nuttx-apps/sources/apps/Application.mk:238: target 'signest.c.d.a.nuttx-apps.nuttx-apps.sources.apps.testing.ostest.o' given more than once in the same rule
/d/a/nuttx-apps/nuttx-apps/sources/apps/Application.mk:238: target 'signest.c.d.a.nuttx-apps.nuttx-apps.sources.apps.testing.ostest.o' given more than once in the same rule
/d/a/nuttx-apps/nuttx-apps/sources/apps/Application.mk:238: target 'signest.c.d.a.nuttx-apps.nuttx-apps.sources.apps.testing.ostest.o' given more than once in the same rule
/d/a/nuttx-apps/nuttx-apps/sources/apps/Application.mk:238: target 'signest.c.d.a.nuttx-apps.nuttx-apps.sources.apps.testing.ostest.o' given more than once in the same rule
  [1/1] Normalize qemu-armv8a/nsh_smp
====================================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants